home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / ColorPickerComponents.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  3.8 KB  |  125 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ColorPickerComponents.p
  3.  
  4.      Contains:    Color Picker Component Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT ColorPickerComponents;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __COLORPICKERCOMPONENTS__}
  30. {$SETC __COLORPICKERCOMPONENTS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC ColorPickerComponentsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __COLORPICKER__}
  38. {$I ColorPicker.p}
  39. {$ENDC}
  40. {    Quickdraw.p                                                    }
  41. {        Types.p                                                    }
  42. {            ConditionalMacros.p                                    }
  43. {        MixedMode.p                                                }
  44. {        QuickdrawText.p                                            }
  45. {    Windows.p                                                    }
  46. {        Memory.p                                                }
  47. {        Events.p                                                }
  48. {            OSUtils.p                                            }
  49. {        Controls.p                                                }
  50. {            Menus.p                                                }
  51. {    Dialogs.p                                                    }
  52. {        Errors.p                                                }
  53. {        TextEdit.p                                                }
  54. {    CMApplication.p                                                }
  55. {        Files.p                                                    }
  56. {            Finder.p                                            }
  57. {        Printing.p                                                }
  58. {        CMICCProfile.p                                            }
  59. {    Balloons.p                                                    }
  60.  
  61. {$IFC UNDEFINED __COMPONENTS__}
  62. {$I Components.p}
  63. {$ENDC}
  64.  
  65. {$PUSH}
  66. {$ALIGN MAC68K}
  67. {$LibExport+}
  68.  
  69. CONST
  70.     kPickerComponentType        = 'cpkr';
  71.  
  72.     kInitPicker                    = 0;
  73.     kTestGraphicsWorld            = 1;
  74.     kGetDialog                    = 2;
  75.     kGetItemList                = 3;
  76.     kGetColor                    = 4;
  77.     kSetColor                    = 5;
  78.     kEvent                        = 6;
  79.     kEdit                        = 7;
  80.     kSetVisibility                = 8;
  81.     kDrawPicker                    = 9;
  82.     kItemHit                    = 10;
  83.     kSetBaseItem                = 11;
  84.     kGetProfile                    = 12;
  85.     kSetProfile                    = 13;
  86.     kGetPrompt                    = 14;
  87.     kSetPrompt                    = 15;
  88.     kGetIconData                = 16;
  89.     kGetEditMenuState            = 17;
  90.     kSetOrigin                    = 18;
  91.     kExtractHelpItem            = 19;
  92.  
  93.  
  94. FUNCTION InitPicker(thePicker: ComponentInstance; VAR data: PickerInitData): LONGINT;
  95. FUNCTION GetDialog(thePicker: ComponentInstance): DialogPtr;
  96. FUNCTION TestGraphicsWorld(thePicker: ComponentInstance; VAR data: PickerInitData): LONGINT;
  97. FUNCTION GetTheColor(thePicker: ComponentInstance; whichColor: ColorType; color: PMColorPtr): LONGINT;
  98. FUNCTION SetTheColor(thePicker: ComponentInstance; whichColor: ColorType; color: PMColorPtr): LONGINT;
  99. FUNCTION DoEvent(thePicker: ComponentInstance; VAR data: EventData): LONGINT;
  100. FUNCTION DoEdit(thePicker: ComponentInstance; VAR data: EditData): LONGINT;
  101. FUNCTION SetVisibility(thePicker: ComponentInstance; visible: BOOLEAN): LONGINT;
  102. FUNCTION DisplayPicker(thePicker: ComponentInstance): LONGINT;
  103. FUNCTION ItemHit(thePicker: ComponentInstance; VAR data: ItemHitData): LONGINT;
  104. FUNCTION GetItemList(thePicker: ComponentInstance): LONGINT;
  105. FUNCTION SetBaseItem(thePicker: ComponentInstance; baseItem: INTEGER): LONGINT;
  106. FUNCTION GetTheProfile(thePicker: ComponentInstance): CMProfileHandle;
  107. FUNCTION SetTheProfile(thePicker: ComponentInstance; profile: CMProfileHandle): LONGINT;
  108. FUNCTION GetPrompt(thePicker: ComponentInstance; VAR prompt: Str255): LONGINT;
  109. FUNCTION SetPrompt(thePicker: ComponentInstance; VAR prompt: Str255): LONGINT;
  110. FUNCTION GetIconData(thePicker: ComponentInstance; VAR data: PickerIconData): LONGINT;
  111. FUNCTION GetEditMenuState(thePicker: ComponentInstance; VAR mState: PickerMenuState): LONGINT;
  112. FUNCTION SetTheOrigin(thePicker: ComponentInstance; where: Point): LONGINT;
  113. FUNCTION ExtractHelpItem(thePicker: ComponentInstance; itemNo: INTEGER; whichMsg: INTEGER; VAR helpInfo: HelpItemInfo): LONGINT;
  114.  
  115. {$ALIGN RESET}
  116. {$POP}
  117.  
  118. {$SETC UsingIncludes := ColorPickerComponentsIncludes}
  119.  
  120. {$ENDC} {__COLORPICKERCOMPONENTS__}
  121.  
  122. {$IFC NOT UsingIncludes}
  123.  END.
  124. {$ENDC}
  125.